//
//  YXIconManager.h
//  YXImageBrowserDemo
//
//  Created by guo peng huang on 2021/5/18.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIImage (YXImageBrowser)

/**
 获取图片便利构造方法

 @param name 图片名字
 @param bundle 资源对象
 @return 图片实例
 */
+ (instancetype)yx_imageNamed:(NSString *)name bundle:(NSBundle *)bundle;

@end


/// 获取图片闭包
typedef UIImage * _Nullable (^YXIconBlock)(void);

/**
 图标管理类
 */
@interface YXIconManager : NSObject

/**
 唯一有效单例
 */
+ (instancetype)sharedManager;

#pragma - 以下图片可更改

/// 基本-加载
@property (nonatomic, copy) YXIconBlock loadingImage;

/// 工具视图-保存
@property (nonatomic, copy) YXIconBlock toolSaveImage;
/// 工具视图-更多
@property (nonatomic, copy) YXIconBlock toolMoreImage;

/// 视频-播放
@property (nonatomic, copy) YXIconBlock videoPlayImage;
/// 视频-暂停
@property (nonatomic, copy) YXIconBlock videoPauseImage;
/// 视频-取消
@property (nonatomic, copy) YXIconBlock videoCancelImage;
/// 视频-播放大图
@property (nonatomic, copy) YXIconBlock videoBigPlayImage;
/// 视频-拖动圆点
@property (nonatomic, copy) YXIconBlock videoDragCircleImage;

@end

NS_ASSUME_NONNULL_END
